﻿namespace MyDomain.Api
{
    public class ApiResult
    {
        public string msg { set; get; }

        public int code { set; get; }

        public bool success { set; get; }

        public object obj { set; get; }


        public ApiResult(bool success, string msg, int code)
        {
            this.success = success;
            this.msg = msg;
            this.code = code;
        }

        public ApiResult(bool success, object obj, int code)
        {
            this.success = success;
            this.obj = obj;
            this.code = code;
        }

        public ApiResult(object obj)
        {
            this.obj = obj;
        }

        public ApiResult(string msg)
        {
            this.msg = msg;
        }
    }
}
